import $http from '@/config/requestConfig'

// 查询应急事件列表
export function getList(query) {
  return $http.get('/yingjiEvent/list',query)
}

// 查询处置列表
export function getHandleRecordList(query) {
  return $http.get('/yingjiEventHandleRecord/list',query)
}

// 查询事件类型
export function getTypeList(query) {
  return $http.get('/yingjiEventType/list',query)
}

// 新增
export function add(data) {
	return $http.post('/yingjiEvent/add',data)
}

// 新增处置记录
export function addHandleRecord(data) {
	return $http.post('/yingjiEventHandleRecord/add',data)
}

// 修改
export function update(data) {
	return $http.post('/yingjiEvent/update',data)
}

// 修改
export function updateForDispose(data) {
	return $http.post('/yingjiEvent/updateForDispose',data)
}

export function finishEvent(data) {
	return $http.post('/yingjiEvent/finishEvent',data)
}